package com.ffyc.cms.service;

import com.ffyc.cms.dao.CompanyDao;
import com.ffyc.cms.model.Admin;
import com.ffyc.cms.model.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyService {
    @Autowired
    CompanyDao companyDao;
    public Company getCompany() {
        return companyDao.getCompany();
    }

    public void savewebmsg(Company company, Admin admin) {
        company.setAdmin(admin);
        companyDao.savewebmsg(company);
    }
}
